package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 报名复审表
 *
 * @author zjl
 * @since 2024-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_student_enroll_review")
@Schema(name = "EduStudentEnrollReview", title = "报名复审表", description = "报名复审表实体类")
public class EduStudentEnrollReview extends Model<EduStudentEnrollReview> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "studentEnrollReviewId", description = "报名复审表id")
    @TableId(value = "student_enroll_review_id", type = IdType.ASSIGN_ID)
    private String studentEnrollReviewId;

    @Schema(name = "studentEnrollId", description = "报名id")
    @TableField(value = "student_enroll_id")
    private String studentEnrollId;

    @Schema(name = "auditType", description = "审核类型1初审 ，2复审")
    @TableField(value = "audit_type")
    private String auditType;

    @Schema(name = "authUserName", description = "审核人")
    @TableField(value = "auth_user_name")
    private String authUserName;

    @Schema(name = "authUserId", description = "审核人id")
    @TableField(value = "auth_user_id")
    private String authUserId;

    @Schema(name = "orgName", description = "单位名称")
    @TableField(value = "org_name")
    private String orgName;

    @Schema(name = "orgId", description = "单位id")
    @TableField(value = "org_id")
    private String orgId;

    @Schema(name = "authTime", description = "审核时间")
    @TableField(value = "auth_time")
    private Date authTime;

    @Schema(name = "authStatus", description = "审核状态0待审核，1审核通过，3审核不通过")
    @TableField(value = "auth_status")
    private String authStatus;

    @Schema(name = "authRemarks", description = "审核意见")
    @TableField(value = "auth_remarks")
    private String authRemarks;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;
    @Schema(name = "del", title = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;
    @Override
    public Serializable pkVal() {
        return this.studentEnrollReviewId;
    }
}
